﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Simple.Repository.Models
{
    /// <summary>
    /// 班级相册
    /// </summary>
    public class ClassAlbum : BusinessFullEntityBase<Guid>
    {
        /// <summary>
        /// 小孩id
        /// </summary>
        public string? ChildId { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string? Describe { get; set; }

        /// <summary>
        /// 标签
        /// </summary>
        public string? Tags { get; set; }

        /// <summary>
        /// 发布人姓名
        /// </summary>
        public string? CreateUserName { get; set; }

        /// <summary>
        /// 班级id
        /// </summary>
        public Guid? ClassId { get; set; }

        /// <summary>
        /// 相册图片
        /// </summary>
        public List<ClassAlbumImage>? Images = null;

        public override void ConfigureEntity(ModelBuilder builder)
        {
            builder.Entity<ClassAlbum>(entity =>
            {
                entity.ToTable("Class_Album");
            });
        }
    }
}
